<h2>Product Details</h2>

<div *ngIf="product">
    <h3 *ngIf="product.name">Product Name: {{product.name}}</h3>
    <h4 *ngIf="product.price">Product Price: {{product.price | currency}}</h4>
    <p *ngIf="product.description">Product Description: {{product.description}}</p>

    <button (click)="addToCart(product)">Buy</button>
</div>